<!-- 
 *  Copyright [2014] UW-Parkside
 * Authors: Jasmine Griffiths, Matthew Zygowicz, Armando Narvaez
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/
-->

<!-- "navigation.php", Navigation Bar for the application.  The main place to add links for the navbar! -->
<ul id = "nav">

    <li><a href = "/index.php/kat/route">Select Route</a></li>
    <?php
    if ($_SESSION['realm'] == 'Admin') {//Display only links with admin permission
        print "<li><a href = '/index.php/kat/addroute'>New Route</a></li>";//New Route Link
        print "<li><a href = '/index.php/kat/usermanager'>User Management</a></li>";//User Management Link
        print "<li><a href = '/index.php/kat/help'>Help</a></li>";//Help link
        print "<li><a href = '/index.php/kat/gettable/xml'>Push Phone Updates</a></li>";//Push Phone Updates Link
    }

    if ($_SESSION['realm'] == 'View/Edit') {//Display only links without admin permission
        print "<li><a href = '/index.php/kat/addroute'>Add Route</a></li>";//Add route link
    }
    ?>
    <li><a href = "/resources/KatAppUserGuide.pdf">Manual</a></li><!-- Manual Link -->
    <li><a href = "/index.php/kat/logout">Logout</a></li><!-- Logout Button -->
</ul>
